package io.renren.modules.sys.customer.service.impl;

import io.renren.modules.sys.customer.dao.BtCustomerProDetailDao;
import io.renren.modules.sys.customer.entity.BtCustomerProDetailEntity;
import io.renren.modules.sys.customer.service.BtCustomerProDetailService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;




@Service("btCustomerProDetailService")
public class BtCustomerProDetailServiceImpl extends ServiceImpl<BtCustomerProDetailDao, BtCustomerProDetailEntity> implements BtCustomerProDetailService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<BtCustomerProDetailEntity> page = this.selectPage(
                new Query<BtCustomerProDetailEntity>(params).getPage(),
                new EntityWrapper<BtCustomerProDetailEntity>()
        );

        return new PageUtils(page);
    }
    public Long insertOneBackprimkey(BtCustomerProDetailEntity entity){
        baseMapper.insertOneBackprimkey(entity);
        return entity.getId();
    }
}
